#ifndef REPORT_H
#define REPORT_H
#include <vector>
#include <math.h>
#include <QDialog>
#include <QGraphicsScene>
#include "record.h"
#include "rasterwindow.h"
#include "expenserecordlist.h"
#include "incomerecordlist.h"
#include "ui_report.h"
#include <QGraphicsEllipseItem>
#include <QHBoxLayout>

#define PI 3.14159265

using namespace std;

class Report: public QDialog, Ui::Report{
    Q_OBJECT
public:
    Report(ExpenseRecordList,IncomeRecordList,vector<QString>,vector<QString>,
           string type, string date, double toPrice, double fromPrice);
    ExpenseRecordList expenserecords;
    IncomeRecordList incomerecords;
    void searchIncome(IncomeRecordList, vector<QString>, string, double, double);
    void searchExpense(ExpenseRecordList, vector<QString>, string, double, double);
signals:
    void on_reportCloseButton_clicked();
private:
    int m_timerId;
    QGraphicsScene *scene;
};
#endif // REPORT_H
